package com.roncoo.permission.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author yuechuanhao
 * @since 2021-03-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class TMenu implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "mid", type = IdType.AUTO)
    private Integer mid;

    /**
     * 子菜单 对应父菜单的id是啥
     */
    private Integer mpid;

    /**
     * 名字
     */
    private String mname;

    /**
     * 路由
     */
    private String murl;

    /**
     * 接口
     */
    private String component;

    /**
     * 日期
     */
    private LocalDate gmtcreate;

    private LocalDate gmtmodified;

    private List<TMenu> children;


}
